﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Practices.Unity;
using System.Threading.Tasks;
using NHibernate.Tool.hbm2ddl;

namespace Data.Impl
{
    public class SchemaExporter : ISchemaExporter
    {
        [Dependency]
        public SessionManager SessionManager { private get; set; }

        public void Create()
        {
            var exporter = new SchemaExport(SessionManager.NhConfiguration);
            exporter.Drop(true, true);
            exporter.Create(true, true);
        }

        public void GenerateSQL(string fileName)
        {
            throw new NotImplementedException();
        }
    }
}
